home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000780_pete@lovelace.…ni-frankfurt.de_Fri Jul 15 11:12:54 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  5KB

  1. Received: from riese.informatik.uni-frankfurt.de (riese.thi.informatik.uni-frankfurt.de) by cs.umb.edu with SMTP id AA26270
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Fri, 15 Jul 1994 03:12:02 -0400
  3. Received: from lovelace.informatik.uni-frankfurt.de (lovelace.thi.informatik.uni-frankfurt.de) by riese.informatik.uni-frankfurt.de (4.1/THI-peleuck2.1)
  4.     id AA19121; Fri, 15 Jul 94 09:12:57 +0200
  5. Content-Transfer-Encoding: binary
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Received: by lovelace.informatik.uni-frankfurt.de (4.1/SMI-4.1)
  8.     id AA14035; Fri, 15 Jul 94 09:12:54 +0200
  9. Date: Fri, 15 Jul 94 09:12:54 +0200
  10. From: pete@lovelace.thi.informatik.uni-frankfurt.de (Peter Dyballa)
  11. Message-Id: <9407150712.AA14035@lovelace.informatik.uni-frankfurt.de>
  12. To: tex-k@cs.umb.edu
  13. Subject: Re: converting to latex2e
  14.  
  15. Timo Kuronen writes:
  16. > You can generate all necessary pk-files as a batch run:
  17. > #!/bin/sh
  18. > MakeTeXPK dcr5 600 600 magstep\(0.0\) qmsesz
  19. > MakeTeXPK dcr6 600 600 magstep\(0.0\) qmsesz
  20. > MakeTeXPK dcr7 600 600 magstep\(0.0\) qmsesz
  21. > ...
  22. > and move them to proper directory, e.g.
  23. > /usr/local/lib/texmf/fonts/public/dc/pk/qmsesz
  24. > or whatever. You would not need MakeTeXPK any more afterwards.
  25. Making (and storing) a first set of PK files is _the_ job for Peter Damian Cugley's mff[-29]. Commanding
  26.  
  27.     mff [-v] -m0,h,1,2,... dc{r,b,sl,ti,...}{8,9,10,12,17}-
  28.  
  29. and having in the home directory a file called .mffrc with that contents:
  30.  
  31.     #  my personal mff startup file
  32.     #  created - Damian Cugley <pdc@oxford.prg> Mon 15 Jan 1990
  33.  
  34.     #  where my font directories are:
  35.     -z qmsesz
  36.     -d 600
  37.     #  bitmap files are stored in directories named after the
  38.     #  printing engine rather than the resolution:
  39.       
  40.     -P /usr/local/tex/lib/fonts/PK/%z/dc
  41.     -T /usr/local/tex/lib/fonts/TFM/dc
  42. or
  43.     -P /usr/local/lib/texmf/fonts/public/dc/pk/%z
  44.     -T /usr/local/lib/texmf/fonts/public/dc/tfm
  45.  
  46. moves TFM and PK files to the directories named. It might take a weekend or even more to make a first set of PK (and TFM) files. If you're going to mirror the structure of input MF files on the output of TFM and PK files you might need to use a batch job that overwrites ~/.mffrc with new settings when a new metafont family is started ...
  47.  
  48.  
  49. > You may also modify MakeTeXPK to select DESTDIR more carefully, like:
  50. > case "$1" in
  51. >     dc*) DESTDIR="/usr/local/lib/texmf/fonts/public/dc/pk";;
  52. >     cm*) DESTDIR="/usr/local/lib/texmf/fonts/public/cm/pk";;
  53. >   logo*) DESTDIR="/usr/local/lib/texmf/fonts/public/logo/pk";;
  54. >       *) DESTDIR="/usr/local/lib/texmf/fonts/tmp/pk";;
  55. > esac
  56. > I hate this solution but I couldn't figure out anything more ingenious.
  57.  
  58. I augmented MakeTeXPK with such things:
  59.  
  60. at the top near the usage:
  61. MFSUBDIR=cm
  62. MFFACES=/usr/local/tex/lib/fonts
  63. PATH=/usr/local/tex/bin:/usr/bin:/usr/ucb
  64.  
  65. later:
  66. if [ -z "$LINE" ]
  67. then
  68. # Do we have a METAFONT source for this typeface?
  69.     for TF in `find $MFFACES/[a-z]* -type f -follow -name "$NAME.mf" -print`
  70.     do FACE=`expr $TF : "$MFFACES/\(.*\)/$NAME.mf"`
  71.         break
  72.     done
  73.         DESTDIR=/usr/local/tex/lib/fonts/PK/$MODE/$FACE
  74.         TFMDIR=/usr/local/tex/lib/fonts/TFM/$FACE
  75.         PKNAME=$NAME.$DPI'pk'
  76.         TFMNAME=$NAME.tfm
  77.  
  78.         echo mf "\mode:=$MODE; mag:=$MAG; scrollmode; input $NAME" \\\</dev/null
  79. env MFBASES=/usr/local/tex/lib/bases MFPOOL=/usr/local/tex/lib mf "\mode:=$MODE; mag:=$MAG; scrollmode; input $NAME" </dev/null
  80.  
  81.         env TEXFONTS=. gftopk ./$GFNAME ./$PKNAME
  82.  
  83. and finally a wonderfull construction due to the fact that we have 300dpi and 600dpi printers in different departments with their own ``home directories'':
  84.  
  85.         if [ $MODE = "LaserJetIV" ]
  86.         then
  87.             if [ `hostname` = "python" ]
  88.             then
  89.                 ln /usr/local/tex/lib/fonts/PK/$MODE/$FACE/$PKNAME /usr/local/tex/lib/fonts/PK/.$MODE/$PKNAME
  90.             else 
  91.                 /usr/hosts/python ln /usr/local/tex/lib/fonts/PK/$MODE/$FACE/$PKNAME /usr/local/tex/lib/fonts/PK/.$MODE/$PKNAME
  92.             fi
  93.         else
  94.             if [ `hostname` = "riese" ]
  95.             then
  96.                 ln $DESTDIR/$PKNAME /usr/local/tex/lib/fonts/PK/.$MODE/$PKNAME
  97.             else
  98.                 /usr/hosts/riese ln $DESTDIR/$PKNAME /usr/local/tex/lib/fonts/PK/.$MODE/$PKNAME
  99.             fi
  100.         fi
  101.         exit 0
  102. else
  103.     <job for T1FACES ... etc, i.e. PK files from PostScript fonts for xdvik>
  104. fi
  105.  
  106. I also organised - and this might be a clue - to create directories called .CanonCX and .LaseJetIV (although HP _never_ user roman letters for their LJ 4) which contain hard links to the PK files in the PK files tree. It speeds up searching and finding the file without much cost (only tha number of hard links lets the number of blocks for inodes of the directories contents rise):
  107.  
  108.     drwxr-xr-x  2 root        86528 Jul 11 14:45 .CanonCX
  109.  
  110.  
  111. Greetings
  112.  
  113. Pete
  114.  
  115. (Peter Dyballa)
  116.  
  117. Johann Wolfgang Goethe-Universit\"at        Robert-Mayer-Str. 11-15      
  118. Fachbereich 20 - Theoretische Informatik    D 60325 Frankfurt am Main    
  119. (Department for Computer Science)        (Federal Republic of Germany)
  120.  
  121. email:pete@thi.informatik.uni-frankfurt.de    voice/fax:0049-69-798 8224/8353